package com.oig.sys.msg.api.factory;

import com.oig.sys.msg.api.MqMsgService;
import com.oig.sys.msg.api.fallback.MqMsgServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class MqMsgServiceFallbackFactory implements FallbackFactory<MqMsgService> {

    @Override
    public MqMsgService create(Throwable cause) {
        MqMsgServiceFallBackImpl msgServiceFallBack = new MqMsgServiceFallBackImpl();
        msgServiceFallBack.setCause(cause);
        return msgServiceFallBack;
    }


}
